package top.ajun.mall.ware.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import top.ajun.common.utils.R;

/**
 * 远程调用 mall-product
 *
 * @author AJun
 * @date 2020/12/9
 */
@FeignClient("mall-product")
public interface ProductFeignService {

    /**
     * 获取 sku 信息
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);

}
